<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/page/core/common/commonvariable.jsp"%>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="<%=commonLib%>" />
<title>模块菜单管理</title>
</head>
<body ng-app="moduleMenuModule" ng-controller="moduleMenuController">	
<jsp:include page="<%=widgetHeader%>"/>

<div class="lay-wrap">
	<div class="lay-left col-xs-1">
			<jsp:include page="<%=widgetLeftBar%>"/>
	</div>
	<div>

</div>

<jsp:include page="<%=widgetAnRightBar%>">
	 <jsp:param name="module1" value="/WEB-INF/views/module/menu/module_menu_edit.jsp"/>
</jsp:include>

<div class="lay-main col-xs-11" >
<div class="panel panel-default">
	<div class="panel-heading">
		<div class="row">
       		<div class="col-xs-10">
       		    <div class="form-group com-title" >模块菜单</div>
       		</div>
       	</div>
     </div>
	<div class="panel-heading">
		<div class="row">
				<div class="col-xs-12">
					<form class="form-inline" role="form"   method="post" >
						<a href="javascript:void(0);" ng-click="goAdd();" class="btn btn-default com-margin-left30">新增</a>
					</form>
				</div>
		</div>
	</div>
	<div class="panel-body">
	<div class="row">
			<input type="hidden" name="moduleMenuId" id="moduleMenuId" ></input>
			<input type="hidden" id="parentId" name="parentId" value="${moduleMenu.parentId}"> </input>
			<input type="hidden" id="moduleInfoId" name="moduleInfoId" value="${moduleMenu.moduleInfoId}"></input>
			<input type="hidden" id=moduleMenuId name="moduleMenuId" value="${moduleMenu.moduleMenuId}"></input>
			<input type="hidden" name="isLastMenu" id="isLastMenu" value="false"></input>	
			<input type="hidden" name="isLeaf" id="isLeaf" value="${moduleMenu.isLeaf}"></input>	
			<div class="col-md-3">
				请选择模块：
				<select id="listModuleInfos" name="getModule" ng-model="selected" ng-change="getModulenfo(null);">
						<option selected="selected" value="-1">---请选择模块---</option>
							<c:forEach items="${list }" var="item">
								<option value="${item.moduleInfoId }">${item.moduleName}</option>
						</c:forEach>
				</select>
				<div class="widget-box">
					<div class="widget-header widget-header-flat">
						<h4 class="smaller">
							 树形菜单
						</h4>
					</div>

					<div class="widget-body">
						<div class="widget-main">
							<div id="tree" class="ztree"></div>
						</div>
					</div>
				</div>
			</div>
		
			<div class="col-md-9">
				<table class="table">
					<thead>
						<tr>
							<th style="width: 4%">序号</th>
							<th style="width: 12%">菜单名称</th>
							<th style="width: 12%">菜单标题</th>
							<th style="width: 12%">是否子类</th>
							<th style="width: 12%">路径</th>
							<th style="width: 16%">操作</th>
						</tr>
					</thead>
					<tbody id="aa">
						<tr ng-repeat="menu in resultList" >
							<td ng-bind="$index + 1"></td>
							<td ng-bind="menu.menuName"></td>
							<td ng-bind="menu.menuTitle"></td>
							<td ng-bind="isLeafOps[menu.isLeaf]"></td>
							<td ng-bind="menu.menuPath"></td>
							<td>
								<a href="javascript:void(0)" title="编辑" ng-click="goModify($index);" class="com-btn-icon glyphicon glyphicon-edit"></a>
								<a href="javascript:void(0)" title="删除" ng-click="showDelWin($index);" class="com-btn-icon glyphicon glyphicon-remove"></a>
							</td>
						</tr>
					</tbody>
				</table>
				<form role="form" id="moduleInfoQueryForm" method="post" action="<%=actionPath%>/module/info/list">
				<!-- <input type="hidden" id="userName" name="userName" value=""/> -->
				<jsp:include page="<%=widgetAnPagition%>"></jsp:include>
				</form>
			</div>
		</div>
	</div>
	</div>
</div>
<jsp:include page="<%=widgetFooter%>"/>
<!-- content end -->
</div>

<!-- 删除固定资产确认操作Modal -->
<div class="modal fade" id="confirm_del_asset_div" tabindex="-1" role="dialog">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="confirm_del_data_label">提示</h4>
      </div>
      <div class="modal-body">
          <span>您确定删除此数据吗？</span>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
        <button type="button" data-dismiss="modal" class="btn btn-primary" ng-click="doDelAsset()">继续</button>
      </div>
    </div>
  </div>
</div>




<script type="text/javascript" src="<%=pagePath%>/js/moudles/module/menu/module_menu.js"></script>
<script type="text/javascript" src="<%=pagePath%>/js/common/aninnerpagination.js"></script>
<link href="<%=pagePath%>/thirdparty/zTree_v3-3.5.22/zTreeStyle/zTreeStyle.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="<%=pagePath%>/thirdparty/zTree_v3-3.5.22/jquery.ztree.core.min.js"></script>
</body>
</html>

